package com.yf.dxapp.module.app.controller.admin.appnotice.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import jakarta.validation.constraints.*;

@Schema(description = "管理后台 - 通知公告新增/修改 Request VO")
@Data
public class AppNoticeSaveReqVO {

    @Schema(description = "通知ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "12344")
    private Long id;

    @Schema(description = "通知标题", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "通知标题不能为空")
    private String title;

    @Schema(description = "通知内容", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "通知内容不能为空")
    private String content;

    @Schema(description = "图片地址")
    private String picture;

    @Schema(description = "通知状态（0正常 1关闭）", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "通知状态（0正常 1关闭）不能为空")
    private Integer status;

}